package jmu.dao;

import jmu.vo.Message;

import java.util.List;

public interface MessageDAO {
    List<Message> findAllMessages() throws Exception;
    Message findMessageById(int id) throws Exception;
    boolean insertMessages(Message message) throws Exception;
    boolean deleteMessages(int id) throws Exception;
    boolean updateMessages(Message message) throws Exception;
    List<Message> searchMessages(String keyword) throws Exception;
}
